package lovo01.lesson04;

/**
 * 玩家类
 */
public class Player {
    public static void main(String[] args) {
        Doctor doctor = new Doctor("张飞",10);
        Farmer farmer = new Farmer("钻石王老五",11);
        Robber robber = new Robber("法外狂徒张三",20);
        Soldier soldier = new Soldier("梅花大侠",30);

        doctor.selfIntroduce();
        doctor.treat();
        farmer.selfIntroduce();
        farmer.attack();
        farmer.mine();
        farmer.treat();
        robber.selfIntroduce();
        robber.attack();
        robber.rob();
        soldier.selfIntroduce();
        soldier.defend(farmer,robber);
    }
}
